<{include file="top.tpl"}>
<script type="text/javascript">
function getIndexPage(){
	xajax.$('innerContent').innerHTML = '<{$loading}>';
	xajax_getIndexPage();
	return false;
}
function closeSite(){
	xajax_closeSite();
	return false;
}
function openSite(){
	xajax_openSite();
	return false;
}
function loadSettings(){
	xajax.$('innerContent').innerHTML = '<{$loading}>';
	xajax_loadSettings();
	return false;
}
function saveSettings(){
	xajax.$('Submit').disabled = true;
	xajax_saveSettings(xajax.getFormValues("basicsetting"));
	return false;
}
function loadCategories(){
	xajax.$('innerContent').innerHTML = '<{$loading}>';
	xajax_loadCategories();
	return false;
}
function saveCategories(){
	if(xajax.$('action').value=='delete'){
		if(!confirm('确定删除吗？')){
			return false;
		}
	}
	xajax.$('Submit').disabled = true;
	xajax_saveCategories(xajax.getFormValues("cateform"));
	return false;
}
function loadUserGroups(){
	xajax.$('innerContent').innerHTML = '<{$loading}>';
	xajax_loadUserGroups();
	return false;
}
function saveUserGroup(){
	if(xajax.$('action').value=='delete'){
		if(!confirm('确定删除吗？')){
			return false;
		}
	}
	xajax.$('Submit').disabled = true;
	xajax_saveUserGroup(xajax.getFormValues("usergroupform"));
	return false;
}
function loadSmilies(){
	xajax.$('innerContent').innerHTML = '<{$loading}>';
	xajax_loadSmilies();
	return false;
}
function saveSmilies(){
	if(xajax.$('action').value=='delete'){
		if(!confirm('确定删除吗？')){
			return false;
		}
	}
	xajax.$('Submit').disabled = true;
	xajax_saveSmilies(xajax.getFormValues("smiliesform"));
	return false;
}
function loadWordFilter(){
	xajax.$('innerContent').innerHTML = '<{$loading}>';
	xajax_loadWordFilter();
	return false;
}
function saveWordFilter(){
	if(xajax.$('action').value=='delete'){
		if(!confirm('确定删除吗？')){
			return false;
		}
	}
	xajax.$('Submit').disabled = true;
	xajax_saveWordFilter(xajax.getFormValues("wordfilterform"));
	return false;
}
function loadDatabase(){
	xajax.$('innerContent').innerHTML = '正在开发中...';	
	return false;
}
function loadUploadFile(){
	xajax.$('innerContent').innerHTML = '正在开发中...';	
	return false;
}
function loadAnnounce(){
	xajax.$('innerContent').innerHTML = '<{$loading}>';	
	xajax_loadAnnounce();
	return false;
}
function saveAnnounce(){
	xajax.$('Submit').disabled = true;
	xajax_saveAnnounce(xajax.getFormValues("announceform"));
}
function loadOtherSetting(){
	xajax.$('innerContent').innerHTML = '正在开发中...';	
	return false;
}
</script>
<div id="mainWrapper">
	<div id="content" class="content">
		<div id="innerContent">
			<!--主体内容 填充div:textbox-->
			<{$loading}>
		</div>
	</div>
	<!--左边栏-->
	<div id="sidebar" class="sidebar">
		<div id="innerSidebar">
			<div id="panel_admin" class="panel">
				  <h5>后台管理</h5>
				  <div class="panel-content">
					<a href="javascript:void(null);" onclick="getIndexPage()">- 基本信息</a><br />
					<a href="javascript:void(null);" onclick="loadSettings()">- 基本设置</a><br />
					<a href="javascript:void(null);" onclick="loadCategories()">- 分类</a><br />
					<a href="javascript:void(null);" onclick="loadUserGroups()">- 用户群组</a><br />
					<a href="javascript:void(null);" onclick="loadSmilies()">- 表情图标</a><br />
					<a href="javascript:void(null);" onclick="loadWordFilter()">- 文字过滤</a><br />
					<a href="javascript:void(null);" onclick="loadDatabase()">- 数据库</a><br />
					<a href="javascript:void(null);" onclick="loadUploadFile()">- 附件</a><br />
					<a href="javascript:void(null);" onclick="loadAnnounce()">- 公告</a><br />
					<a href="javascript:void(null);" onclick="loadOtherSetting()">- 其它操作</a><br />
					<br /><a href="?act=logout">- 退出</a>
				</div>
			</div>		
		</div>
	</div>
	<!--左边栏结束-->
	<div class="clear"></div>
	
</div>
<script>
getIndexPage();
</script>
<{include file="foot.tpl"}>